<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="staff">

<TABLE class="body" cellSpacing="0" cellPadding="0"  border="0" width="100%">
		<TR> 
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-t-back.gif" bgcolor="white" colspan="2"></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tr.gif" width="8" border="0"/></TD>
		</TR>

	<xsl:for-each select="member">
		<TR vAlign="top"> 
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-l.gif" width="8" border="0"/></TD>
			<TD align="center" style="padding:5px; border-bottom: 1px solid;" bgcolor="white" valign="bottom">

		<xsl:choose>
			<xsl:when test="count(@thumb) &gt; 0 and count(@splash) &gt; 0">
				<center><a href="/showUserPics.aspx?userGuid={@userid}"><img border="0" src="/imgs/user/thumb/{@thumb}"/></a></center>
			</xsl:when>
			<xsl:when test="count(@thumb) &gt; 0 and count(@splash) = 0">
				<center><img border="0" src="/imgs/user/thumb/{@thumb}"/></center>
			</xsl:when>
			<xsl:when test="count(@thumb) = 0 and count(@splash) = 0 and count(@picname) &gt; 0">
				<center><a href="/showUserPics.aspx?userGuid={@userid}"><img border="0" src="/imgs/user/thumb/{@thumb}"/></a></center>
			</xsl:when>
			<xsl:otherwise>
			</xsl:otherwise>
		</xsl:choose>

			</TD>
			<TD align="left" style="padding-left:20px; padding:5px; border-bottom: 1px solid;" bgcolor="white" valign="middle">

			<div style="font-weight:bold; padding-bottom:3px;"><xsl:value-of select="@title"/></div>
			<div style="padding-bottom:10px;"><xsl:value-of select="@descr"/></div>
			<nobr>
			<xsl:choose>
			<xsl:when test='floor( @uStatus div 16 ) mod 2 and (@sexid="24" or @sexid="26")'><img src="/imgs/ananas_m.gif"/></xsl:when>
			<xsl:when test='floor( @uStatus div 16 ) mod 2 and (@sexid="25" or @sexid="27")'><img src="/imgs/ananas_f.gif"/></xsl:when>
			<xsl:when test='floor( @uStatus div 4 ) mod 2 and (@sexid="24" or @sexid="26")'><img src="/imgs/frag_m.gif"/></xsl:when>
			<xsl:when test='floor( @uStatus div 4 ) mod 2 and (@sexid="25" or @sexid="27")'><img src="/imgs/frag_f.gif"/></xsl:when>
			<xsl:when test='floor( @uStatus div 32 ) mod 2'><img src="/imgs/mela.gif"/></xsl:when>
		   <xsl:when test='floor( @uStatus div 2048 ) mod 2'><img style="margin-left: 1px;" src="/imgs/camera.gif"/></xsl:when>
			<xsl:when test='floor( @uStatus div 1024 ) mod 2'><img src="/imgs/gfx.gif"/></xsl:when>
			</xsl:choose>
			&#160;
			<a class="nick" href="/profileShow.aspx?userGuid={@userid}">
			<xsl:value-of select="@nick"/>
			</a>

		<xsl:variable name="userid" select="@userid"/>
		<xsl:choose>
			<xsl:when test='count(/staff/online/row[@userid = $userid])'>
            <img style="float:left;margin-left:10px;margin-top:2px;" src="/imgs/online.gif"/><div class="segue" style="position:relative;top:0px;left:4px;padding:1px;">Online</div>
			</xsl:when>
			<xsl:otherwise>
            <img style="float:left;margin-left:10px;margin-top:2px;" src="/imgs/offline.gif"/><div class="segue" style="position:relative;top:0px;left:4px;padding:1px;">Offline</div>
			</xsl:otherwise>
		</xsl:choose>

			</nobr>
			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
	</xsl:for-each>

		<TR> 
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-bl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-b.gif" bgcolor="white"  colspan="2"><IMG height="8" src="/imgs/pvts/box-b.gif" width="10" border="0"/></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-br.gif" width="8" border="0"/></TD>
		</TR>
</TABLE>




</xsl:template>

</xsl:stylesheet>